set(ARMCC_TOOLCHAIN_PATH "D:/Program/mdk5/ARM/ARMCC/bin")
find_program(ARMCC_COMPILER armcc PATHS ${ARMCC_TOOLCHAIN_PATH})
find_program(ARMASM_COMPILER armasm PATHS ${ARMCC_TOOLCHAIN_PATH})
set(CMAKE_C_COMPILER "${ARMCC_COMPILER}")
set(CMAKE_CXX_COMPILER "${ARMCC_COMPILER}")
set(CMAKE_ASM_COMPILER "${ARMASM_COMPILER}")
find_program(CMAKE_AR armar PATHS ${ARMCC_TOOLCHAIN_PATH})
find_program(CMAKE_LINKER armlink PATHS ${ARMCC_TOOLCHAIN_PATH})
find_program(CMAKE_OBJCOPY fromelf PATHS ${ARMCC_TOOLCHAIN_PATH})
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
message(STATUS "${ARMCC_FROMELF}")

